package site.teamo.biu.net.common.exception;

import lombok.Getter;
import site.teamo.biu.tool.core.exception.BiuResponseCode;

/**
 * @author haocongshun
 * @date 2023/03/06 15:38:20
 */
public class BiuNetBusinessException extends RuntimeException {

    @Getter
    private final BiuResponseCode code;

    public BiuNetBusinessException(BiuResponseCode code) {
        super(code.msg);
        this.code = code;
    }

    public BiuNetBusinessException(BiuResponseCode code, String message) {
        super(message);
        this.code = code;
    }
}
